.PHONY:all
all:publish_client consumer_client
publish_client:publish_client.cc ../mqcommon/msg.pb.cc ../mqcommon/request.pb.cc ../third/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++14 -I../third/include -L../third/lib -lmuduo_base -lmuduo_net -lz -lprotobuf -pthread -g

consumer_client:consumer_client.cc ../mqcommon/msg.pb.cc ../mqcommon/request.pb.cc ../third/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++14 -I../third/include -L../third/lib -lmuduo_base -lmuduo_net -lz -lprotobuf -pthread -g
	
.PHONY:clean
clean:
	rm -f publish_client consumer_client